<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>040 W3Cschool水平导航表</title>
    <link rel="stylesheet" href="./css表\reset.css">
    <style>
        .nav{
            width: 1210px;
            height: 48px;
            background-color: #E8E7E3;
            margin: 100px auto;
        }
        .nav a{
            float: left;
            height: 100%;
            line-height: 48px;
            font-size: 18px;
            color: #777777;
            padding:0 41px;
            
        }
        .nav a:hover{
            background-color:#3F3F3F ;
            color: #C9C8C5;
        }
        .nav li:last-child a{
            padding: 0 46px 0 46px;
        }





    </style>
</head>

<body>
    <ul class="nav">
        <li>
            <a href="#">HTML/CSS</a>
        </li>
        <li>
            <a href="#">Browser Side</a>
        </li>
        <li>
            <a href="#">Server Side</a>
        </li>
        <li>
            <a href="#">Programming</a>
        </li>
        <li>
            <a href="#">XML</a>
        </li>
        <li>
            <a href="#">Web Building</a>
        </li>
        <li>
            <a href="#">Reference</a>
        </li>
    </ul>

</body>

</html>